<template>
    <div class="login-box">
        <div class="login-notice">
            <span>账号登录</span>
            <span>(直接登录即可)</span>
        </div>
        <hr>
        <div class="login-name">
            <div>用 户 名</div>
            <div>密 码</div>
            <div>
                <input type="button" value="登录" @click="getToken()">
            </div>
        </div>
    </div>
</template>
<script>
export default {
    methods:{
        getToken(){
            localStorage.setItem("token",Math.random());
            this.$router.back();
        }
    }
}
</script>
<style lang="less" scoped>
.login-box {
    width: 100%;
    height: 1rem;
    box-sizing: border-box;
    > .login-notice {
        text-align: center;
        line-height: 1rem;
        > span:first-child {
            font-size: 0.45rem;
            font-weight: bold;
            padding-right: 0.1rem;
        }
        > span:last-child {
            font-size: 0.28rem;
            color: @gray;
        }
    }
}
.login-name {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 0.6rem;
    > div {
        width: 100%;
        height: 1rem;
        padding: 0.3rem;
        box-sizing:border-box;
        border-bottom: 1px solid @gray-light;
        font-size: 0.4rem;
        color: @gray;
    }
    > div:last-child {
        box-sizing:content-box;
        padding:0.8rem 0rem;
        border:none;
        > input {
            border: none;
            outline:none;
            background-color: @pink;
            color: @white;
            width: 100%;
            height:100%;
            border-radius:0.5rem;
        }
    }
}
</style>